$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  
  .banner {
    width: 100%;
    position: relative;
    .swiper-container {
      width: 100%;

      .info {
        width: 100%;
        position: relative;
        &::before{
          content:'';
          display: block;
          position: absolute;
          left: 0;
          top:0;
          width: 100%;
          height: 100%;
          z-index: 1;
          background: linear-gradient(110deg, #C9DBEC 0.46%, #C8D7EA 11.4%, rgba(225, 236, 249, 0.96) 34.4%, rgba(234, 245, 255, 0.86) 46.39%, rgba(234, 245, 255, 0.31) 61.38%, rgba(234, 245, 255, 0.00) 88.26%);
        }
        .bg {
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            height: 100vh;
          }
        }

        .text {
          position: absolute;
          left: 50%;
          width: 80vw;
          top: 55%;
          transform: translate(-50%, -50%);
          z-index: 2;
          .p1{
            color: #030303;
            font-size: $fontSize_90;
            font-weight: 600;
            line-height: 1.2;
            span{
              color: #006AB5;
            }
          }
          .p2{
            color: #464646;
            font-size: $fontSize_36;
            margin: 2vw 0 5vw 0;
          }
          a{
            display: flex;
            background-color: #0060B0;
            color: #FFF;
            font-size: $fontSize_22;
            width: fit-content;
            align-items: center;
            padding: 0.5vw 1vw 0.7vw 1vw;
            position: relative;
            svg{
              display: block;
              margin-left:0.5vw;
              width: 8/$f+vw;
              min-width: 6px;
            }
            &::after{
              content:'';
              display: block;
              position: absolute;
              right:-0.6vw;
              top:0;
              background-color: rgba(0, 166, 229, 1);
              width:0.6vw;
              height: 100%;
              transition: all 600ms;
            }
          }
        }
      }
    }
  }

  .main{
    position: relative;
    padding-bottom: 6vw;
    .fbg{
      position: absolute;
      right:0;
      bottom: 0;
      z-index: -1;
      img{
        width: 1377/$f+vw;
        max-width: 100%;
        object-fit: contain;
      }
    }
    .section1{
      margin: 6vw 10vw;
      .t{
        color: #030303;
        font-size: $fontSize_54;
        font-weight: bold;
        display: flex;
        align-items: flex-start;

        svg {
          width: 21/$f+vw;
          display: block;
          margin: 0.7vw 0 0 0.7vw;
        }
      }
      .content{
        display: flex;
        justify-content: space-between;
        margin-top: 4vw;
        .l{
          width: 48%;
          position: relative;
          .swiper-container{
            .pic{
              background-color: rgba(228, 240, 255, .4);
              img{
                width: 100%;
                display: block;
                object-fit: cover;
              }
            }
          }
          .prev{
            position: absolute;
            left: 2%;
            top:50%;
            transform: translateY(-50%);
            z-index: 10;
          }
          .next{
            position: absolute;
            right:2%;
            top:50%;
            transform: translateY(-50%);
            z-index: 10;
          }
          .prev,.next{
            cursor: pointer;
            svg{
              display: block;
              width: 58/$f+vw;
               path,circle{
                stroke:rgba(38, 43, 47, .3);
                transition: all 600ms;
               }
            }
            &:hover{
              svg{
                path,circle{
                  stroke:rgba(0, 96, 176, 1);
                }
              }
            }
          }
          .swiper-pagination-progressbar{
            left: 0;
            bottom:0;
            width: 100%;
            background-color:rgba(190,191 ,193,.5);
            height: 3px;
            .swiper-pagination-progressbar .swiper-pagination-progressbar-fill{
              background-color: #0060B0;
            }
          }
        }
        .info{
          width: 47%;
          position: relative;
          .p1{
            color: #000;
            font-size: $fontSize_36;
            font-weight: 600;
          }
          .p2{
            color: #006AB5;
            font-size: $fontSize_22;
            font-weight: 600;
            margin: 2vw 0 0.5vw 0;
            line-height: 1.6;
          }
          .des{
            color: #000;
            font-size: $fontSize_22;
            font-family: 'SourceHanSansCN-Light';
            line-height: 1.6;
          }
          .btns{
            display: flex;
            position: absolute;
            left: 0;
            bottom:0;
            .more{
              display: flex;
              background-color: #0060B0;
              color: #FFF;
              font-size: $fontSize_22;
              width: fit-content;
              align-items: center;
              padding: 0.5vw 1vw 0.7vw 1vw;
              position: relative;
              svg{
                display: block;
                margin-left:0.5vw;
                width: 8/$f+vw;
                min-width: 6px;
              }
              &::after{
                content:'';
                display: block;
                position: absolute;
                right:-0.6vw;
                top:0;
                background-color: rgba(0, 166, 229, 1);
                width:0.6vw;
                height: 100%;
                transition: all 600ms;
              }
            }
            .ask{
              display: block;
              border: 1px solid #0060B0;
              width: fit-content;
              padding: 0.6vw 1.6vw;
              color: #0060B0;
              font-size: $fontSize_22;
              font-weight: 500;
              transition: all 600ms;
              margin-left: 2vw;
              &:hover{
                background-color: #0060B0;
                color:white;
              }
            }
          }
        }
      }
    }
    .section2{
      position: relative;
      .t{
        color: #030303;
        font-size: $fontSize_54;
        font-weight: bold;
        display: flex;
        align-items: flex-start;
        position: absolute;
        left: 10vw;
        top:5vw;
        z-index: 5;
        svg {
          width: 21/$f+vw;
          display: block;
          margin: 0.7vw 0 0 0.7vw;
        }
      }
      .content{
        .swiper-container{
          .bg{
            position: relative;
            &::before{
              content:'';
              display: block;
              position: absolute;
              left: 0;
              top:0;
              width: 100%;
              height: 100%;
              z-index: 1;
              background: linear-gradient(72deg, #C9DBEC 1.73%, #C8D7EA 10.09%, rgba(225, 236, 249, 0.96) 21.02%, rgba(234, 245, 255, 0.86) 36.84%, rgba(234, 245, 255, 0.31) 48.31%, rgba(234, 245, 255, 0.00) 68.86%);
            }
            img{
              width: 100%;
              display: block;
              object-fit: cover;
              height: 100vh;
            }
          }
          .info{
            position: absolute;
            left: 10vw;
            top:50%;
            transform: translateY(-50%);
            z-index: 5;
            width: 30vw;
            .icon{
              img{
                width: 48/$f+vw;
                display: block;
                object-fit: contain;
              }
            }
            .pt{
              color: #000;
              font-size: 44/$f+vw;
              font-weight: bold;
              margin: 1vw 0;
            }
            .des{
              color: #464646;
              font-size: $fontSize_22;
              line-height: 1.8;
            }
            a{
              display: flex;
              background-color: #0060B0;
              color: #FFF;
              font-size: $fontSize_22;
              width: fit-content;
              align-items: center;
              padding: 0.5vw 1vw 0.7vw 1vw;
              position: relative;
              margin-top: 2vw;
              svg{
                display: block;
                margin-left:0.5vw;
                width: 8/$f+vw;
                min-width: 6px;
              }
              &::after{
                content:'';
                display: block;
                position: absolute;
                right:-0.6vw;
                top:0;
                background-color: rgba(0, 166, 229, 1);
                width:0.6vw;
                height: 100%;
                transition: all 600ms;
              }
            }
          }
        }
      }
      .pager{
        display: flex;
        position: absolute;
        left: 10vw;
        width: 80vw;
        bottom:5%;
        border-bottom: 3px solid #F2F2F2;
        z-index: 5;
        justify-content: space-between;
        .item{
          cursor: pointer;
          color: #909090;
          font-size: $fontSize_22;
          transition: all 600ms;
          position: relative;
          padding: 1vw 2vw;
          transform: translateY(2px);
          &::after{
            content:'';
            display: block;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom:0;
            background: #0063B6;
            height: 3px;
            width: 0;
            transition: all 600ms;
          }
          &:hover{
            color: #000;
            &::after{
              width: 100%;
            }
          }
        }
        .active{
          color: #000;
          &::after{
            width: 100%;
          }
        }
      }
    }
    .section3{
      background:#EBF3F9;
      padding: 6vw 0 0 0;
      position: relative;
      .map{
        position: absolute;
        left: 0;
        top:4vw;
        width: 100%;
        z-index: 1;
        img{
          width: 100%;
          display: block;
          object-fit: contain;
        }
      }
      .title{
        position: relative;
        z-index: 2;
        .t{
          color: #030303;
          font-size: $fontSize_54;
          font-weight: bold;
          display: flex;
          align-items: flex-start;
          margin: 0 auto;
          width: fit-content;
          svg:last-child {
            width: 21/$f+vw;
            display: block;
            margin: 0.7vw 0 0 0.7vw;
          }
          svg:first-child {
            width: 21/$f+vw;
            display: block;
            margin: 2.5vw 0.7vw 0 0;
          }
        }
      }
      .des{
        color: #464646;
        font-size: $fontSize_22;
        font-weight: 300;
        text-align: center;
        margin: 2vw 10vw;
        line-height: 1.6;
      }
      .pic{
        width: 100%;
        position: relative;
        z-index: 2;
        margin-top: 4vw;
        img{
          display: block;
          max-width: 100%;
        }
      }
      .allItems{
        display: flex;
        background: #2D92D0;
        position: absolute;
        left: 10vw;
        width: 80vw;
        bottom:-7vw;
        z-index: 10;
        .item{
          width: 20%;
          padding: 4vw 0;
          text-align: center;
          position: relative;
          .st{
            display: flex;
            color: #FFF;
            justify-content: center;
            font-size: $fontSize_48;
            font-weight: bold;
          }
          .tag{
            color: #FFF;
            font-size: $fontSize_22;
            font-weight: 300;
            margin-top: 10px;
          }
          .icon{
            position: absolute;
            right:0;
            bottom:0;
            svg{
              max-width: 100/$f+vw;
            }
          }
        }
        .item:nth-child(2){
          background: rgba(31,137,203,1);
        }
        .item:nth-child(3){
          background: rgba(0,96,176,1);
        }
        .item:nth-child(4){
          background: rgba(4,133,186,1);
        }
        .item:nth-child(5){
          background: rgba(0,106,181,1);
        }
      }
    }
    .section4{
      margin: 13vw 10vw 0 10vw;
      .title{
        display: flex;
        justify-content: space-between;
        align-items: center;
        .t{
          color: #030303;
          font-size: $fontSize_54;
          font-weight: bold;
          display: flex;
          align-items: flex-start;
          svg {
            width: 21/$f+vw;
            display: block;
            margin: 0.7vw 0 0 0.7vw;
          }
        }
        a{
          display: block;
          border: 1px solid #0060B0;
          width: fit-content;
          padding: 0.6vw 1.6vw;
          color: #0060B0;
          font-size: $fontSize_22;
          font-weight: 500;
          transition: all 600ms;
          &:hover{
            background-color: #0060B0;
            color:white;
          }
        }
      }
      .content{
        display: flex;
        justify-content: space-between;
        margin-top: 5%;
        .l{
          width: 50%;
          margin-top: -3vw;
          a{
            display: flex;
            justify-content: space-between;
            align-items: center;
            .time {
              width: 5vw;
              transition: all 600ms;
              .day {
                color: #262B2F;
                font-size: $fontSize_48;
                font-weight: 700;
              }

              .date {
                color: #000;
                font-size: $fontSize_16;
              }
            }

            .text {
              width: calc(98% - 5vw);
              border-bottom: 1px solid #BEBFC1;
              padding: 3vw 0;
              .p1 {
                color: #000;
                font-size: $fontSize_22;
                font-weight: 600;
                transition: all 600ms;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                transition: all 600ms;
              }

              .des {
                color: #464646;
                font-size: $fontSize_22;
                margin-top: 0.6vw;
                line-height: 1.6;
                word-break: break-all;
                text-overflow: ellipsis;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                transition: all 600ms;
                overflow: hidden;
                  font-family: 'SourceHanSansCN-Light';
                  display: none;
              }
            }
          }
          .active{
            .time{
              transform: translateY(-1vw);
            }
            .text{
              .p1{
                color: #0060B0;
              }
              .des{
                display: -webkit-box;
              }
            }
          }
        }
        .r{
          width: 46%;
          .pic{
            overflow: hidden;
            img{
              width: 100%;
              display: block;
              object-fit: cover;
              transition: all 600ms;
            }
            &:hover{
              img{
                transform: scale(1.05);
              }
            }
          }
        }
      }
    }
  }



  @media screen and (max-width: 1024px) {
    padding-top: 60px;

    .banner {
      .swiper-container {
        .info {
          .text {
            width: 90%;
            .p1{
              font-size: 32px;
              line-height: 1.3;
            }
            .p2{
              font-size: 18px;
              margin: 20px 0 40px 0;
            }
            a{
              font-size: 14px;
              padding: 8px 15px;
              &::after{
                width: 6px;
                right:-6px;
              }
            }
          }
        }
      }
    }
    .main{
      .section1{
        margin: 20px 5% 40px 5%;
        .t{
          font-size: 20px;
          svg{
            width: 8px;
            margin: 2px 0 0 5px;
          }
        }
        .content{
          margin-top: 30px;
          flex-direction: column;
          .l {
            width: 100%;
  
            .prev,
            .next {
              svg {
                width: 30px;
              }
            }
          }
  
          .info {
            margin-top: 20px;
            width: 100%;
  
            .p1 {
              font-size: 18px;
            }
  
            .p2 {
              font-size: 14px;
              margin: 10px 0;
            }
  
            .des {
              font-size: 14px;
            }
  
            .btns{
              position: static;
              margin-top: 20px;
              .more{
                font-size: 14px;
                padding: 8px 15px;
                &::after{
                  width: 6px;
                  right:-6px;
                } 
              }
              .ask{
                position: static;
                padding: 8px 25px;
                font-size: 14px;
                margin-left:15px;
              }
            }
          }
        }
      }
      .section2{
        .t{
          font-size: 20px;
          left: 5%;
          top:5%;
          svg{
            width: 8px;
            margin: 2px 0 0 5px;
          }
        }
        .content{
          .swiper-container{
            .info{
              left: 5%;
              width: 90%;
              .icon{
                img{
                  width: 40px;
                }
              }
              .pt{
                font-size: 18px;
                margin: 10px 0;
              }
              .des{
                font-size: 16px;
              }
              a{
                font-size: 14px;
                padding: 8px 15px;
                margin-top: 30px;
                &::after{
                  width: 6px;
                  right:-6px;
                } 
              }
            }
          }
        }
        .pager{
          left: 5%;
          width: 90%;
          flex-wrap: wrap;
          .item{
            width: 30%;
            font-size: 14px;
            padding: 10px 0;
            text-align: center;
          }
        }
      }
      .section3{
        padding-top: 30px;
        .title{
          .t{
            font-size: 20px;
            svg:first-child{
              width: 8px;
              margin: 5px 5px 0 0;
            }
            svg:last-child{
              width: 8px;
              margin: 2px 0 0 5px;
            }
          }
        }
        .des{
          font-size: 16px;
          margin: 15px 5%;
          line-height: 1.8;
        }
        .allItems{
          position: relative;
          width: 90%;
          margin: -60px auto 0 auto;
          flex-wrap: wrap;
          left: 0;
          z-index: 10;
          .item{
            width: 100%;
            .st{
              font-size: 32px;
            }
            .tag{
              font-size: 14px;
            }
            .icon{
              svg{
                max-width: 30px;
              }
            }
          }
        }
      }
      .section4{
        margin: 60px 5%;
        .title{
          .t{
            font-size: 20px;
            svg{
              width: 8px;
              margin: 2px 0 0 5px;
            }
          }
          a{
            font-size: 14px;
            padding: 5px 15px;
          }
        }
        .content{
          flex-direction: column-reverse;
          .l{
            width: 100%;
            margin-top: 20px;
            a{
              flex-direction: column;
              width: 100%;
              margin-bottom: 20px;
              align-items: flex-start;
              .time{
                width: fit-content;
                .day{
                  font-size: 24px;
                }
                .date{
                  font-size: 16px;
                }
              }
              .text{
                width: 100%;
                padding:0 0 15px 0;
                .p1{
                  font-size: 18px;
                  line-height: 1.5;
                  margin-top: 10px;
                }
                .des{
                  font-size: 14px;
                  display: block;
                  margin-top: 10px;
                }
              }
            }
            .active{
              .time{
                transform: translateY(0);
              }
              .text{
                .p1{
                  color: #000;
                }
              }
            }
          }
          .r{
            width: 100%;
          }
        }
      }
    }
  }
}